home *** CD-ROM | disk | FTP | other *** search
-
- inetd AmiTCP/IP Document inetd
-
- NAME
- inetd -- internet ``super-server''
-
- SYNOPSIS
- inetd SERVPRI/K/N DEBUG/S CONFIGFILE
-
- DESCRIPTION
- inetd should be run when the AmiTCP/IP protocol stack is started.
- inetd listens for connections on certain internet sockets. When a
- connection is found on one of its sockets, it decides what service
- the socket corresponds to, and invokes a program to service the
- request. After the program is finished, it continues to listen on
- the socket (except in some cases which will be described below).
- Essentially, inetd allows running one daemon to invoke several
- others, reducing load on the system.
-
- PARAMETERS
-
- SERVPRI
- Process priority for the launched servers. Default is -1.
-
- DEBUG
- Turns on debugging.
-
- CONFIGFILE
- Specifies the configuration file name.
-
- CONFIGURATION
- Upon execution, inetd reads its configuration information from a
- configuration file which, by default, is "db/inetd.conf". There
- must be an entry for each field of the configuration file, with
- entries for each field separated by a tab or a space. Comments are
- denoted by a ``#'' at the beginning of a line or ``;'' anywhere in
- the line. There must be an entry for each field. The fields of
- the configuration file are as follows:
-
- service name
- socket type
- protocol
- wait/nowait/dos/pri/stack
- user
- server program
- server program name
- server program arguments
-
- The service-name entry is the name of a valid service in the
- netdatabase. For ``internal'' services (discussed below), the
- service name must be the official name of the service.
-
- The socket-type should be one of ``stream'', ``dgram'', ``raw'',
- ``rdm'', or ``seqpacket'', depending on whether the socket is a
- stream, datagram, raw, reliably delivered message, or sequenced
- packet socket. Current system supports only stream, datagram and
- raw protocols.
-
- The protocol must be a valid protocol as given in netdatabase.
- Examples might be ``tcp'' or ``udp''.
-
- The next entry specifies the type of server, its priority,
- stacksize and other parameters. The parameters are separated by a
- slash (`/'). The available parameters are as follows:
-
- WAIT
- If the server process all incoming connections or datagrams
- on a socket and eventually time out, the server is said to
- be ``single-threaded'' and should use a ``wait'' entry.
- Comsat and talkd are both examples of the this type of
- datagram server.
-
- NOWAIT
- If a datagram server connects to its peer, freeing the
- socket so inetd can received further messages on the
- socket, it is said to be a ``multi-threaded'' server, and
- should use the ``nowait'' entry. If a stream server
- handles only one connection, which is accepted by the
- inetd, it should also use the ``nowait'' entry.
-
- DOS
- If the server uses the DOS IO to handle the connection, it
- is called a ``naïve'' server, and it should use the ``dos''
- entry. If the server is naïve, inetd maps a DOS filehandle
- to the incoming connection via TCP: handler (inet-handler).
-
-
- STACK=nnnn
- The default stack size for servers is 16 kilobytes. You
- can override the default with this parameter. The minimum
- stack size is 4000 bytes.
-
- PRIORITY=p
- The task priority for servers is -10 by default. You can
- override the default task priority for one server with this
- parameter.
-
-
- The user entry should contain the user name of the user as whom the
- server should run. This field is for Unix and future compability
- only.
-
- The server-program entry should contain the pathname of the program
- which is to be executed by inetd when a request is found on its
- socket. If the server program is resident, the path name should be
- suppressed. If the server is naïve (ie. using DOS file IO), this
- entry should contain the shell name or, if default user shell is to
- be used, ``-''. If inetd provides this service internally, this
- entry should be ``internal''.
-
- The server-program-name is CLI command name for the server process.
- It is shown in the printout of ``status'' command. (Task name of
- the server process is the service and the peer address, e.g. ``echo
- [192.233.15.19]''.) This and argument entry are optional.
-
- The server program arguments should be just as arguments normally
- are.
-
- inetd provides several ``trivial'' services internally by use of
- routines within itself. These services are ``echo'', ``discard'',
- ``chargen'' (character generator), ``daytime'' (human readable
- time), and ``time'' (machine readable time, in the form of the
- number of seconds since mid night, January 1, 1900). All of these
- services are TCP and UDP based. For details of these services,
- consult the appropriate RFC from the Network Information Center.
-
- inetd rereads its configuration file automatically when the
- configuration file is changed or when it receives the CTRL-F
- signal. Services may be added, deleted or modified when the
- configuration file is reread.
-
- HISTORY
- Versions below 4 did not support Amiga DOS IO nor notifications.
-
- BUGS
- If the original configuration file is renamed and a new file is
- created with old name, no file notification signals are sent. In
- that case you should either delete the old (now renamed) file or
- send CTRL-F signal to inetd manually.
-